<template>
  <el-dialog :visible.sync="dialogVisible" width="30%">
    <span slot="title" class="dialog-title">
      <i class="el-icon-search" style="color:#139AF6"/>
      <span style="color:#139AF6">Search</span>
    </span>
    <el-form ref="ruleForm" :model="formInline" label-width="100px" class="demo-form-inline">
      <el-form-item label="Lot ID" prop="name">
        <el-input v-model="formInline.name"/>
      </el-form-item>
      <el-form-item label="分选机" prop="name">
        <el-input v-model="formInline.name"/>
      </el-form-item>
      <el-form-item label="测试机" prop="name">
        <el-input v-model="formInline.name"/>
      </el-form-item>
    </el-form>
    <span slot="footer" class="dialog-footer">
      <el-button type="primary">下一个</el-button>
      <el-button icon="el-icon-delete" type="danger" @click="resetForm('ruleForm')">{{ $t('reset') }}</el-button>
    </span>
  </el-dialog>
</template>
<script>
export default {
  name: 'DialogSearch',
  components: {},
  data() {
    return {
      dialogVisible: false,
      formInline: {}
    }
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {
    this.$nextTick(() => {
      this.$eventBus.$on('open', val => {
        this.dialogVisible = val
      })
    })
  },
  methods: {
    resetForm(formName) {
      this.$refs[formName].resetFields()
    }
  }
}
</script>
<style lang='scss' scoped>
</style>
